package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 广告数据对象 ad_performance
 * 
 * @author ruoyi
 * @date 2024-08-15
 */
public class AdPerformance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分析唯一标识符
 */
    private Long performanceId;

    /** 广告表的广告编号 */
    @Excel(name = "广告表的广告编号")
    private Long adId;

    private  String adName;

    public String getAdName() {
        return adName;
    }

    public void setAdName(String adsName) {
        this.adName = adsName;
    }

    /** 广告点击率
 */
    @Excel(name = "广告点击率 ")
    private Long clickRate;

    /** 广告转化率
 */
    @Excel(name = "广告转化率 ")
    private Long conversionRate;

    /** 数据记录日期
 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "数据记录日期 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordDate;

    public void setPerformanceId(Long performanceId) 
    {
        this.performanceId = performanceId;
    }

    public Long getPerformanceId() 
    {
        return performanceId;
    }
    public void setAdId(Long adId) 
    {
        this.adId = adId;
    }

    public Long getAdId() 
    {
        return adId;
    }
    public void setClickRate(Long clickRate) 
    {
        this.clickRate = clickRate;
    }

    public Long getClickRate() 
    {
        return clickRate;
    }
    public void setConversionRate(Long conversionRate) 
    {
        this.conversionRate = conversionRate;
    }

    public Long getConversionRate() 
    {
        return conversionRate;
    }
    public void setRecordDate(Date recordDate) 
    {
        this.recordDate = recordDate;
    }

    public Date getRecordDate() 
    {
        return recordDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("performanceId", getPerformanceId())
            .append("adId", getAdId())
            .append("clickRate", getClickRate())
            .append("conversionRate", getConversionRate())
            .append("recordDate", getRecordDate())
            .toString();
    }
}
